package com.TangoGames.panel;


import java.util.Collection;

import android.graphics.Canvas;
import android.graphics.Color;
import android.hardware.SensorEvent;
import android.util.Log;
import android.view.MotionEvent;

public class BasePanelState implements IPanelState {

	/**
	 * TAG
	 */
	private static final String TAG = BasePanelState.class.getSimpleName();

	/**
	 * 
	 */
	private boolean isInit = false; 
	
	/**
	 * 
	 */
	private BasePanel basepanel;

	@Override
	public void Init(BasePanel basepanel) {

		this.basepanel = basepanel;
		
		isInit = true;
		
		Log.d(TAG, "Init");		
		
	}

	@Override
	public void Start() {

		Log.d(TAG, "Start");		
		
	}
		
	@Override
	public boolean onTouchEvent(MotionEvent event) {
		// TODO Auto-generated method stub
		Log.d(TAG, "onTouchEvent");

		return false;
	}

	@Override
	public void Draw(Canvas canvas) {
		canvas.drawColor(Color.YELLOW);
		Log.d(TAG, "Draw");
	}

	@Override
	public void Update(long gameTime) {
		Log.d(TAG, "Update");
		// TODO Auto-generated method stub

	}

	@Override
	public BasePanel getBasePanel() {
		// TODO Auto-generated method stub
		return basepanel;
	}

	@Override
	public void setBasePanel(BasePanel basepanel) {
		this.basepanel = basepanel;
	}

	@Override
	public void Resume() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void Pause() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void Destroy() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean isAlreadyIinitialized() {
		// TODO Auto-generated method stub
		return isInit;
	}

	@Override
	public Collection<IPanelElement> getChildrenElements() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IPanelElement getParentElement() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean isDrawable() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void onSensorChanged(SensorEvent event) {
		// TODO Auto-generated method stub
		
	}

}
